// var str=window.location.search.slice(window.location.search.split("=")[1]);
// var token=str.contains("&id")?str.split("&id")[0] :str;
var token=window.location.search.slice(window.location.search.lastIndexOf("=")+1);
var token2=window.location.search.split("=")[1].split("&id")[0];
//?token=eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NTg0Nzc2MzQsInVzZXJJZCI6MSwiaWF0IjoxNjU4MzkxMjM0fQ.E--HBMxG7HOrtd1VHDKU3lDq6rrkQxCRq7cBsgjVy9Q&id=10000007
    //token=eyJhbGciOiJIUzIG1X_t0U&id=10000003
function goForToken(token,page){
    window.location.href=page+"?token="+token;
}